package com.gobrs.async.core.common.def;

/**
 * 默认配置
 */
public interface DefaultConfig {

    String TASKNAME = "asyncTaskName";

    Integer THREADPOOLQUEUESIZE = 10000;

    Long KEEPALIVETIME = 30000L;

    Long EXECUTETIMEOUT = 10000L;

    String RULE_ANY = "any";

    String RULE_ANY_CONDITION = "anyCondition";

    String RULE_EXCLUSIVE = "exclusive";

    int retryCount = 1;

    /**
     * 任务失败后是否执行子任务
     */
    boolean failSubExec = false;

    /**
     * 事务
     */
    boolean transaction = false;

    boolean anyConditionState = true;

    Integer CORE_SIZE = 100;

    Integer MAX_SIZE = 200;

    /**
     * 拒绝策略
     */
    String REJECT = "AbortPolicy";

    String QUEUE_SIZE = "";

}
